package com.ruoyi.vehicles.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 车辆管理对象 vehicles
 * 
 * @author ruoyi
 * @date 2024-10-20
 */
public class Vehicles extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 车辆ID，主键，自增 */
    private Long id;

    /** 车辆名称 */
    @Excel(name = "车辆名称")
    private String vehicleName;

    /** 车辆类型（如卡车、装甲车等） */
    @Excel(name = "车辆类型", readConverterExp = "如=卡车、装甲车等")
    private String vehicleType;

    /** 车辆重量 */
    @Excel(name = "车辆重量")
    private String weight;

    /** 车辆尺寸（长×宽×高） */
    @Excel(name = "车辆尺寸", readConverterExp = "长=×宽×高")
    private String dimensions;

    /** 载重能力 */
    @Excel(name = "载重能力")
    private String payloadCapacity;

    /** 新增时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "新增时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addedAt;

    /** 备注信息 */
    @Excel(name = "备注信息")
    private String note;

    /** 创建时间 */
    private Date createdAt;

    /** 更新时间，自动更新 */
    private Date updatedAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setVehicleName(String vehicleName) 
    {
        this.vehicleName = vehicleName;
    }

    public String getVehicleName() 
    {
        return vehicleName;
    }
    public void setVehicleType(String vehicleType) 
    {
        this.vehicleType = vehicleType;
    }

    public String getVehicleType() 
    {
        return vehicleType;
    }
    public void setWeight(String weight) 
    {
        this.weight = weight;
    }

    public String getWeight() 
    {
        return weight;
    }
    public void setDimensions(String dimensions) 
    {
        this.dimensions = dimensions;
    }

    public String getDimensions() 
    {
        return dimensions;
    }
    public void setPayloadCapacity(String payloadCapacity) 
    {
        this.payloadCapacity = payloadCapacity;
    }

    public String getPayloadCapacity() 
    {
        return payloadCapacity;
    }
    public void setAddedAt(Date addedAt) 
    {
        this.addedAt = addedAt;
    }

    public Date getAddedAt() 
    {
        return addedAt;
    }
    public void setNote(String note) 
    {
        this.note = note;
    }

    public String getNote() 
    {
        return note;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("vehicleName", getVehicleName())
            .append("vehicleType", getVehicleType())
            .append("weight", getWeight())
            .append("dimensions", getDimensions())
            .append("payloadCapacity", getPayloadCapacity())
            .append("addedAt", getAddedAt())
            .append("note", getNote())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
